<template>
  <div class="example2">
    <bk-card title="当前登录人信息">
      <div class="user_name">用户名： {{$store.getters.user.username}}</div>
      <div class="avatar_url">头像： <img :src="$store.getters.user.avatar_url" alt=""></div>
    </bk-card>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {
      initDateTime: new Date(),
    };
  },
  created() {
  },
  methods: {
  },
};
</script>

<style scoped>
.example2 {
  min-height: 100vh;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk-card {
  min-width: 340px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(25,25,41,0.06);
  padding: 32px 40px 24px 40px;
  text-align: center;
}
.user_name {
  font-size: 18px;
  color: #313238;
  margin-bottom: 18px;
  font-weight: 500;
}
.avatar_url img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #e1eafc;
  box-shadow: 0 2px 8px 0 rgba(25,25,41,0.04);
  margin-top: 8px;
}
</style>
